/*
 * 易族智汇（北京）科技有限公司 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.javamall.com.cn
 */
package com.enation.app.javashop.core.client.feignimpl.statistics;

import com.enation.app.javashop.client.statistics.ShopDataClient;
import com.enation.app.javashop.core.client.fallback.statistics.ShopDataClientFallbackFactory;
import com.enation.app.javashop.core.handler.FeignConfiguration;
import com.enation.app.javashop.model.statistics.dto.ShopData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 店铺收藏数据管理
 *
 * @author chopper
 * @version v1.0
 * @Description:
 * @since v7.0
 * 2018/5/8 下午4:11
 */
@FeignClient(name = "statistics-service", fallbackFactory = ShopDataClientFallbackFactory.class,configuration = {FeignConfiguration.class})
public interface ShopDataClientFeignImpl extends ShopDataClient {

    /**
     * 修改店铺收藏数量
     *
     * @param shopData
     */
    @Override
    @RequestMapping(value = "/client/statistics/shop/collection", method = RequestMethod.POST)
    void updateCollection(@RequestBody ShopData shopData);

    /**
     * 修改店铺收藏数量
     *
     * @param shopData
     */
    @Override
    @RequestMapping(value = "/client/statistics/shop/put", method = RequestMethod.POST)
    void add(@RequestBody ShopData shopData);

    /**
     * 修改店铺数据
     *
     * @param shopData
     */
    @Override
    @RequestMapping(value = "/client/statistics/shop/data", method = RequestMethod.PUT)
    void updateShopData(@RequestBody ShopData shopData);
}
